
 int startWeek(){
     var current = new DateTime.now();
     final week = current.weekday;
     final date = current.add(Duration(days: (0-week+1)));
    // print(now.millisecondsSinceEpoch);//单位毫秒，13位时间戳
    String year = date.year.toString();
    String month = date.month.toString().padLeft(2, '0');
    String day = date.day.toString().padLeft(2, '0');
    var d2 = '$year-$month-$day 24:00:00';
    return DateTime.parse(d2).millisecondsSinceEpoch;
  }
main(List<String> args) {
  var date = new DateTime.now();
  // print(now.millisecondsSinceEpoch);//单位毫秒，13位时间戳
  String year = date.year.toString();
  String month = date.month.toString().padLeft(2, '0');
  String day = date.day.toString().padLeft(2, '0');

  var d1 = '$year-$month-$day 00:00:00';
  var d2 = '$year-$month-$day 24:00:00';
  // print(DateTime.parse(d2).millisecondsSinceEpoch - DateTime.parse(d1).millisecondsSinceEpoch);
  // print(24*60*60*1000);
  // print(date.weekday);
  // print(date.day);

  Duration a = Duration(seconds: 1,microseconds: 10);
  print(a.inMicroseconds.ceilToDouble());
  print(a.inMicroseconds);

}
